val map = Map(("45s","dsgf"),(3,3))
for (k<- map.keys){
  println(k)
}

val array = Array(1,2,3,4)

val func = (x:Int) =>{x * x }
array.map(func)
array.map(_* 10)
array.map((x:Int) =>{x * x })
array.map( _ *23)

val words = Array("one", "two", "two", "three", "three", "three")
//Array((one,1), (two,1), (two,1), (three,1), (three,1), (three,1))
val wordPairsRDD = words.map(word => (word, 1))
val wordPairsRDD1 = words.flatMap(_.toUpperCase())

wordPairsRDD.groupBy(_._1)
val wordPairsRDD2 = wordPairsRDD.reduce((x,y) => (x._1+","+y._1,x._2+y._2))
wordPairsRDD2._1
wordPairsRDD2._2



